package com.faithnmn.learnenglish.util;

import android.view.animation.Animation;
import android.view.animation.RotateAnimation;
import android.view.animation.TranslateAnimation;

public class AnimationUtils {

	public static RotateAnimation getRotationAnimation(){
		RotateAnimation rotateAnim = new RotateAnimation(0.0f, 360,
			    RotateAnimation.RELATIVE_TO_SELF, 0.5f, 
			    RotateAnimation.RELATIVE_TO_SELF, 0.5f);
		rotateAnim.setRepeatMode(Animation.INFINITE);
		rotateAnim.setDuration(2000);
		rotateAnim.setRepeatCount(Animation.INFINITE);
		return rotateAnim;
	}
	
	public static TranslateAnimation getTranslateUpAnimation(){
		TranslateAnimation transAnim = new TranslateAnimation(0	, 0, 0, 1000);
		transAnim.setDuration(250);
		return transAnim;
	}
	
}
